package org.jeecg.modules.inspection.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.inspection.entity.*;
import org.jeecg.modules.inspection.mapper.InspectionAreaMapper;
import org.jeecg.modules.inspection.mapper.InspectionItemMapper;
import org.jeecg.modules.inspection.service.IInspectionAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 巡更点
 * @Author: jeecg-boot
 * @Date:   2019-09-20
 * @Version: V1.0
 */
@Service
public class InspectionAreaServiceImpl extends ServiceImpl<InspectionAreaMapper, InspectionArea> implements IInspectionAreaService {

    @Autowired
    private InspectionAreaMapper inspectionAreaMapper;
    @Autowired
    private InspectionItemMapper inspectionItemMapper;
    @Override
    public List<InspectionAreaItem> selectAreaItemByProject(String areaId) {
        return inspectionAreaMapper.selectAreaItemByProject(areaId);
    }

    @Override
    public List<InspectionItem> findAllConfigItem(String parentId,String parentId1) {
        return inspectionAreaMapper.findAllConfigItem(parentId,parentId1);
    }

    @Override
    public List<FloorInfo> findAllFloor(String projectId) {
        return inspectionAreaMapper.findAllFloor(projectId);
    }

    @Override
    public List<InspectionArea> getAreaByOffice(String officeId) {
        return inspectionAreaMapper.getAreaByOffice(officeId);
    }

    @Override
    public List<InspectionArea> selectArea(List<String> areaIds) {
        return inspectionAreaMapper.selectArea(areaIds);
    }

    @Override
    public List<PinspetionArea> selectAreaByLine(String processId) {
        return inspectionAreaMapper.selectAreaByLine(processId);
    }

    @Override
    public List<InspectionItem> selectConfigItem(List<String> ids,String officeId,String companyId) {
        return inspectionItemMapper.selectConfigItem(ids,officeId,companyId);
    }

    @Override
    public Integer findFloorNumList(String floorId) {
        return inspectionAreaMapper.findFloorNumList(floorId);
    }

    @Override
    public List<String> findAllAreaItemConfig(String areaId,String officeId,String companyId) {
        return inspectionAreaMapper.findAllAreaItemConfig(areaId,officeId,companyId);
    }
}
